﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace LprMiddleWare.ValueConverters
{
    public class KzCarTypeConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var t = (int) value;
            switch (t)
            {
                case KzCarType.CarStypeUnknow:
                    return "未知";
                case KzCarType.CarStypeTiny:
                    return "微型";
                case KzCarType.CarStypeSmall:
                    return "小型";
                case KzCarType.CarStypeMiddle:
                    return "中型";
                case KzCarType.CarStypeLarge:
                    return "大型";
                case KzCarType.CarStypeBig:
                    return "长车";
                default:
                    return "未知";

            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
